const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    // 将所有接口融入到自己的api中
    proxy: {
      "/api": {
        target: "http://localhost/api",
        changeOrigin: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
  publicPath: "./",
  runtimeCompiler: true,
});
